package com.team.app.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.team.app.dao.AuthAceptDao;
import com.team.app.model.Auth;
import com.team.app.model.AuthAcept;


@Service
public class AuthAceptServiceImpl implements AuthAceptService{
	@Autowired
    private AuthAceptDao authAceptDao;     

	@Override
	@Transactional
	public Long create(AuthAcept obj) {
		// TODO Auto-generated method stub
		return authAceptDao.create(obj);
	}

	@Override
	@Transactional
	public void edit(AuthAcept obj) {
		// TODO Auto-generated method stub
		authAceptDao.edit(obj);
	}

	@Override
	@Transactional
	public void remove(AuthAcept obj) {
		// TODO Auto-generated method stub
		authAceptDao.remove(obj);
	}

	@Override
	@Transactional
	public AuthAcept find(Object id) {
		// TODO Auto-generated method stub
		return authAceptDao.find(id);
	}

	@Override
	@Transactional
	public List<AuthAcept> findAll() {
		// TODO Auto-generated method stub
		return authAceptDao.findAll();
	}

	@Override
	@Transactional
	public List<AuthAcept> findRange(int[] range) {
		// TODO Auto-generated method stub
		return authAceptDao.findRange(range);
	}

	@Override
	@Transactional
	public Long count() {
		// TODO Auto-generated method stub
		return authAceptDao.count();
	}

	@Override
	@Transactional
	public List<AuthAcept> findAll(Long urlId) {
		// TODO Auto-generated method stub
		return authAceptDao.findAll(urlId);
	}

	@Override
	@Transactional
	public AuthAcept find(Long urlId, Long objectId,Auth auth) {
		// TODO Auto-generated method stub
		return authAceptDao.find(urlId, objectId, auth);
	}

	@Override
	@Transactional
	public List<AuthAcept> findByRole(Long roleId) {
		// TODO Auto-generated method stub
		return authAceptDao.findByRole(roleId);
	}

	@Override
	@Transactional
	public List<AuthAcept> findAll(Long urlId, Auth auth) {
		// TODO Auto-generated method stub
		return authAceptDao.findAll(urlId, auth);
	}

	@Override
	@Transactional
	public AuthAcept find(Long urlId, Long roleId) {
		// TODO Auto-generated method stub
		return authAceptDao.find(urlId, roleId);
	}

}
